package com.hl.mapper;

import com.hl.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    public List<User> listAll();
    @Insert(value = "insert into user(name,age,phone,sex,create_time) values (#{name},#{age},#{phone},#{sex},now())")
    public int save(User user);
}
